// ================================START====================================
// Template generated from		FRAMEWORKIVY CODE GENERATOR
// Generator Version:			<1.0.0.0>
// Template Creation Time:		<Thursday, 26 May, 2016   12:32:16 AM>
// Template Modification Time:	<Monday, 23 May, 2016   11:22:57 PM>
// Code Generation Time:		<Thursday, 26 May, 2016   12:52:16 AM>
// Workstation ID:				<PRAVESH>
// Current system User ID:		<pravesh kr>
// Entity/Table Name:			<PersonProfileImage>
// ModuleName:			        <UserManagement>
// Description:					<CSharp Class For Entity Dao Unit Test>
// Template File:				<IvyGodeGenDefaultTemplate V1.1.xml>

// Please modify the generated code as per requirement.
// This code generator is just to speed up the stereo type codes
// Complex logic needs to be modified manually.

// This block of comments will not be included in
// the definition of the procedure.
// =========================================================================

using System;

//This Class specific System namespaces
using Microsoft.VisualStudio.TestTools.UnitTesting;

//This Class Specific IvyFramework namespaces
using Ivy.Common.Framework.Base;
using Ivy.Common.Framework.DataAccess;
using Ivy.Common.Framework.GeneralUtility;

using Ivy.UserManagement.Entity;
using Ivy.UserManagement.DataAccess;

namespace Ivy.UserManagement.UnitTest
{
    [TestClass]
    public class PersonProfileImageDaoUnitTest
    {
        [TestMethod]
        public void PersonProfileImageInsertTestMethod()
        {
            PersonProfileImage _tempPersonProfileImage = new PersonProfileImage();
            PersonProfileImageDao _PersonProfileImageDao = new PersonProfileImageDao();

            //Auto Generated attribute should not be supplied from outside.

            //Foreign Key attribute should have valid values from their respective parent tables/entities
            _tempPersonProfileImage.PersonKey = 9999; //Not Unique Key
            //_tempPersonProfileImage.PersonProfileImageData = ???; This is attribute data type different and should be treated manually.
            _tempPersonProfileImage.PersonImageType = "TEST PersonImageType Not Unique" ;
            _tempPersonProfileImage.PersonImageFileName = "TEST PersonImageFileName Not Unique" ;

            _tempPersonProfileImage.Sys_CreatedByID = "1";
            _tempPersonProfileImage.Sys_DeleteType = DeleteType.SoftDeleteOnly;
            _tempPersonProfileImage.Sys_IsDeleted = false;
            _tempPersonProfileImage.Sys_OrganizationID = -1;

            Assert.IsTrue(_PersonProfileImageDao.Insert(_tempPersonProfileImage));
        }

        //[TestMethod]
        //public void PersonProfileImageUpdateTestMethod()
        //{
        //    PersonProfileImage _tempPersonProfileImage = new PersonProfileImage();
        //    PersonProfileImageDao _PersonProfileImageDao = new PersonProfileImageDao();

        //    //Please edit and provide a valid value for GetByPrimaryKey() parameter
        //    _tempPersonProfileImage = _PersonProfileImageDao.GetByPrimaryKey(int_PersonKey); 

        //    //_tempPersonProfileImage.PersonProfileImageData = ???; This is attribute data type different and should be treated manually.
        //    _tempPersonProfileImage.PersonImageType = "TEST PersonImageType Not Unique" ;
        //    _tempPersonProfileImage.PersonImageFileName = "TEST PersonImageFileName Not Unique" ;

        //    _tempPersonProfileImage.Sys_ModifiedByID = "1";

        //    Assert.IsTrue(_PersonProfileImageDao.Update(_tempPersonProfileImage));
        //}

    }
}


